import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import axios from 'axios'
// mardowm编辑器
import mavonEditor from 'mavon-editor'
import Fragment from 'vue-fragment'

import '@/style/redefine.css'
import 'element-ui/lib/theme-chalk/index.css';
import 'mavon-editor/dist/css/index.css'

import './js/axios'
import global_msg from "./js/global"   //注意文件路径，实际路径以项目目录结构为准
import {formatDate} from "@/util/main"
import common from './util/common';


Vue.prototype.$axios = axios
Vue.use(ElementUI);
Vue.use(Fragment.Plugin)
Vue.use(mavonEditor)


// 全局方法挂载
Vue.prototype.formatDate = formatDate
Vue.prototype.$global_msg = global_msg
Vue.prototype.$common = common

//阻止启动生产消息
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

/*
图标选择组件
1、npm install vue-fontawesome-elementui-icon-picker
2、 import iconPicker from 'vue-fontawesome-elementui-icon-picker';
    Vue.use(iconPicker);
3、 <icon-picker v-model="icon"></icon-picker>
*/